Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : ORIX App Universe8 * File : src/app/[locale]/ecosystem/page.tsx9 * Module : app10 * Repository : https://git.spboucher.ai/orix-spboucher-ai11 * Project Website : https://www.orixlab.dev12 * Created : 2026-11-2113 * Last Modified : 2026-11-2114 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: support@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { Metadata } from "next";44import Link from "next/link";45import { Reveal } from "@/components/ui/Reveal";46import { Arrow } from "@/components/ui/Badges";47import { AppIcon } from "@/components/ui/AppIcon";48import { dict, href, isLocale, type Locale } from "@/lib/i18n";49import { alternates } from "@/lib/seo";50import { cards } from "@/lib/view";5152export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {53 const { locale } = await params; const t = dict(locale as Locale);54 return { title: t.eco.title, description: t.eco.lead, alternates: alternates("/ecosystem", locale as Locale) };55}5657export default async function Ecosystem({ params }: { params: Promise<{ locale: string }> }) {58 const { locale: raw } = await params; const locale: Locale = isLocale(raw) ? raw : "en";59 const t = dict(locale), apps = cards(locale);60 // Counted from the catalog at request time: these figures cannot drift from what the site actually lists.61 const numbers: [number, string][] = [[apps.length, t.eco.numbers.apps], [apps.filter((a) => a.status === "beta").length, t.eco.numbers.beta], [apps.filter((a) => a.status === "development" || a.status === "coming-soon").length, t.eco.numbers.dev], [apps.filter((a) => a.status === "available").length, t.eco.numbers.released]];62 return (63 <>64 <header className="relative isolate overflow-hidden pb-10 pt-32 sm:pt-44">65 <div className="aurora -z-10" aria-hidden /><div className="gridlines -z-10" aria-hidden />66 <div className="wrap">67 <p className="eyebrow">ORIX</p>68 <h1 className="display mt-6 max-w-5xl !text-[clamp(2.6rem,6.6vw,5.4rem)]">{t.eco.title}</h1>69 <p className="lead mt-7">{t.eco.lead}</p>70 <ul className="mt-12 flex flex-wrap gap-3" aria-label={t.catalog.title}>71 {apps.map((a) => <li key={a.slug}><Link href={href(locale, `/apps/${a.slug}`)} title={a.name} aria-label={a.name} className="block transition-transform duration-500 ease-out-expo hover:-translate-y-1"><AppIcon name={a.name} src={a.icon} size={60} /></Link></li>)}72 </ul>73 </div>74 </header>75 <section className="wrap section !pb-0">76 <dl className="grid grid-cols-2 gap-px overflow-hidden rounded-3xl border border-line bg-line lg:grid-cols-4" data-testid="eco-numbers">77 {numbers.map(([n, l]) => <div key={l} className="bg-surface p-7"><dd className="mono text-[clamp(2.4rem,5vw,3.6rem)] font-semibold leading-none tracking-tight">{n}</dd><dt className="mt-3 text-[0.92rem] text-ink2">{l}</dt></div>)}78 </dl>79 </section>80 <section className="wrap section">81 <ol className="grid gap-x-12 gap-y-14 md:grid-cols-2">82 {t.eco.sections.map(([title, body], i) => (83 <Reveal as="li" key={title} delay={(i % 2) * 90} className="rule pt-6">84 <span className="mono text-[0.72rem] tracking-[0.16em] text-ink3">{String(i + 1).padStart(2, "0")}</span>85 <h2 className="h2 mt-3 !text-[clamp(1.5rem,2.4vw,2rem)]">{title}</h2>86 <p className="mt-3 text-ink2">{body}</p>87 </Reveal>88 ))}89 </ol>90 <p className="mt-16"><Link href={href(locale, "/apps")} className="btn btn-primary">{t.hero.explore}<Arrow /></Link></p>91 </section>92 </>93 );94}95